<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
  <meta charset="UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
  <title th:text="${result.data.keyword}">求职防坑 - 公司列表</title>
  <meta name="keywords" th:content="${result.data.keyword}+',求职防坑,公司怎么样,公司点评,看公司评价的网站,应届生求职网,公司点评'"/>
  <meta name="description" content="求职防坑手册由大家自由提交公司并自由评价。公司怎么样，公司点评，看求职防坑手册。应届生求职，看公司评价的网站。"/>
  <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
        integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
        crossorigin="anonymous"/>
  <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet"/>
  <link rel="stylesheet" type="text/css" th:href="@{/css/common.css}"/>
  <link rel="stylesheet" type="text/css" th:href="@{/css/search.css}"/>
</head>

<body>
<div class="container">
  <div class="row">
    <div class="black_content">
      <div class="header">
        <span class="glyphicon glyphicon-knight"></span>
        <div class="create_link_div pull-right">
          <a th:href="@{/companies/create}" class="create_link" target="_blank">增加公司</a>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="container">
  <div class="row">
    <div class="nav_area">
      <div class="nav_area_content">
        <div class="nav_area_content_info">
          <a href="/">首页</a>
          <span>>公司搜索</span>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="container">
  <div class="row">
    <div class="col-md-8 search_div">
      <form th:action="@{/companies}" th:method="get">
        <div class="input-group">
          <input type="text" class="form-control" onfocus="this.placeholder = ''"
                 onblur="this.placeholder = '请输入公司关键字'" placeholder="请输入公司关键字" name="keyword"
                 th:value="${result.data.keyword}" autocomplete="off"/>
          <div class="input-group-addon">
            <button type="submit" class="btn">搜索公司</button>
          </div>
        </div>
      </form>
      <div class="clearfix"/>
      <div>
        <ul th:each="company : ${result.data.companies}">
          <li class="item"><a th:href="'/companies/'+${company.id}" th:text="${company.name}"
                              target="_blank"/>
          </li>
        </ul>
      </div>
    </div>
    <div class="col-md-4">
      敬请期待
    </div>
  </div>
</div>
<script>
  var _hmt = _hmt || [];
  (function () {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?8e5779def54689dfeb863aea23ad0397";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
  })();
</script>
<script>
  (function () {
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
      bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
    }
    else {
      bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
  })();
</script>
</body>

</html>